/*
 * Account.h
 *
 *  Created on: 2020年11月15日
 *      Author: san
 */

#ifndef ACCOUNT_H_
#define ACCOUNT_H_
#include <string>

class Account {
public:
	Account();
	virtual ~Account();

	void calculate() {amount += amount * interestRate;}
	static double rate() {return interestRate;}
	static void rate(double);

private:
	std::string owner;
	double amount;
	static double interestRate;
	static double initRate();
};

#endif /* ACCOUNT_H_ */
